package cn.edu.scau.cmi.dengshixin.singleton;

public class Chairman {
	private static Chairman instance;
	private String name;
	
	private Chairman(String name) {
		this.name = name;
	}

	public static Chairman getInstance(String name) {
		if(instance == null) {
			instance = new Chairman(name);
		}
		return instance;
	}
	
	public String getName() {
		if(instance == null && this.name.equals(null)) return null;
		return this.name;
	}

}

